package com.daka.enumerate;

/**
 * @author beliveli on 2016/4/8 0008.
 */
public enum StatusCode {
    SUCCESS(0, "执行成功"), NOT_LOGIN(-1, "用户未登录"), SELECT_ITEM_NOT_EXISTS(-2, "查询项未找到"),
    ADD_ERROR(-3, "新增异常"), NO_COMPETENCE(-4, "没有权限"), JAVA_THROW_EXCEPTION(-100, "系统服务连接异常"),
    USER_PASSWORD_ERROR(-5,"密码不匹配"), RESET_ERROR(-6, "重置失败！"), SEND_CODE_ERROR(-7, "发送失败！"),
    UPLOAD_ERROR(-8, "上传失败");
    private int statusCode;
    private String statusMessage;

    StatusCode(int statusCode, String statusMessage) {
        this.statusCode = statusCode;
        this.statusMessage = statusMessage;
    }

    public int getStatusCode() {
        return statusCode;
    }

    public String getStatusMessage() {
        return statusMessage;
    }
}
